<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/admin/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
	
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/font-awesome/css/font-awesome.css" />
	
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/parallax-slider.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/app.css" />

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/stylesmenu.css" />
	
	<?php Yii::app()->bootstrap->register(); ?>

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<?php
if(substr($_SERVER['REQUEST_URI'], -10)!='user/login'){
?>
<div id="header1">
          <div id="header1_2">
                <b>CMS Kejaksaan Tinggi DKI Jakarta</b>
          </div>
</div>
<div id="header2"><img id='img_10' src='<?php echo Yii::app()->request->baseUrl; ?>/images/index/index_10.jpg' width='1366' height='119' border='0'  /></div>


<div id='cssmenu'> 
    <ul id="nav">
        <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>
        <li class='active has-sub'><a href='#'>Profil</a>
		  <ul>
		   <li><a href='<?php echo Yii::app()->createUrl('/admin/page/admin/cat/5'); ?>'>Visi-Misi</a></li>
		   <li><a href='<?php echo Yii::app()->createUrl('/admin/page/admin/cat/6'); ?>'>Tugas dan Wewenang</a></li>
		   <li><a href='<?php echo Yii::app()->createUrl('/admin/page/admin/cat/7'); ?>'>Struktur Organisasi</a></li>
		   <li><a href='<?php echo Yii::app()->createUrl('/admin/pejabat/admin'); ?>'>Profil Pimpinan</a></li>
		   <li><a href='<?php echo Yii::app()->createUrl('/admin/page/admin/cat/8'); ?>'>Sejarah</a></li>
		  </ul>
		</li>

		<li class='active has-sub'><a href='#'>Organisasi</a>
		  <ul>
		   <li><a href='<?php echo Yii::app()->createUrl('/admin/tugasWewenang/admin'); ?>'>Tugas dan Wewenang</a></li>
		   <li><a href='<?php echo Yii::app()->createUrl('/admin/strukturOrganisasi/admin'); ?>'>Struktur Organisasi</a></li>
		   <li><a href='<?php echo Yii::app()->createUrl('/admin/kegiatan/admin'); ?>'>Kegiatan</a></li>
		  </ul>
		</li>
		
	    <li><a href='<?php echo Yii::app()->createUrl('/admin/posting/admin'); ?>'>Berita</a></li>
		<li class='active has-sub'><a href='<?php echo Yii::app()->createUrl('/admin/pengumuman/admin'); ?>'>Pengumuman</a>
			<ul>
			   <li><a href='<?php echo Yii::app()->createUrl('/admin/pengumuman/admin'); ?>'>Pengumuman</a></li>
			   <li><a href='<?php echo Yii::app()->createUrl('/admin/sekilas/admin/cat/9'); ?>'>Sekilas Info</a></li>
		   </ul>
		
		</li>
	 	<li class='active has-sub'><a href="#">Info Perkara</a>
            <ul>
                <li><a href='<?php echo Yii::app()->createUrl('/perkaraPidum'); ?>'>Pidana Umum</a></li>
                <li><a href="#">Pidana Khusus</a></li>
            </ul>
        </li>
		<li class='active has-sub'><a href="#">Pengaduan Masyarakat</a>
			<ul>
				<li><a href='<?php echo Yii::app()->createUrl('/admin/page/admin/cat/4'); ?>'>Info</a></li>
				<li><a href='<?php echo Yii::app()->createUrl('/admin/pengaduan/admin'); ?>'>Daftar Pengaduan</a></li>
			</ul>
		</li>
		<li ><a href='<?php echo Yii::app()->createUrl('/admin/buronan/admin'); ?>'>Buronan</a></li>
		<!--<li><a href='<?php //echo Yii::app()->createUrl('/admin/link/admin'); ?>'>Link</a></li>-->
       <!-- <li><a href="#">Link</a>
			<ul>
				<li class='has-sub'><a href='<?php //echo Yii::app()->createUrl('/admin/link/admin'); ?>'>Link</a></li>
				<li class='has-sub'><a href='<?php //echo Yii::app()->createUrl('/admin/linkGambar/admin'); ?>'>Link Gambar</a></li>
			</ul>
		</li>  -->      
        <!--<li><a href="#">Kontak</a></li>-->
		
		<li><a href="<?php echo Yii::app()->createUrl('/admin/konsultasiHukum/admin'); ?>">Konsultasi Hukum</a></li>

        <li class='active has-sub'><a href="#">Kelola</a>
			<ul>
				<?php
				$id = Yii::app()->user->getId();
				$superuser = User::model()->findByPk($id)->superuser;
				if ($superuser==1){ 
				?>
				<li><a href='<?php echo Yii::app()->createUrl('/wewenang/users'); ?>'>User dan Wewenang</a></li>
				<?php
				}
				?>
				<li><a href='<?php echo Yii::app()->createUrl('/admin/bidang/admin'); ?>'>Bidang</a></li>
				<li><a href='<?php echo Yii::app()->createUrl('/poll/poll/admin'); ?>'>Polling</a></li>
			</ul>
		</li>

		

		<li><a href='<?php echo Yii::app()->createUrl('/user/logout'); ?>'>Logout</a></li>
    </ul>
</div>


<?php
}
?>

<?php echo $content; ?>

	<div class="clear"></div>

	<div id="footer">
		Copyright &copy; <?php echo date('Y'); ?><br/>
		All Rights Reserved.<br/>
	</div><!-- footer -->

</div><!-- page -->

</body>
</html>